package com.sport.facilities.booking.system.htmlchecker;

import android.util.Log;

public class ConfirmBookingResultChecker extends BasicChecker {
	private final String TAG = "ConfirmBookingResultChecker";

	public boolean getConfirmBookingResultfromHtml(String confirmBookingResultHtml) {
		Log.d(TAG, confirmBookingResultHtml);
		
		boolean bkchecker = confirmBookingResultHtml.contains("Your booking is confirmed.");
		
		Log.d(TAG, "Confirm Success ? "+bkchecker);
		return bkchecker;
	}

	/*
	 * HTML PATTERN : 01-23 14:53:26.835: D/CancelBookingResultChecker(10988):
	 * <tr><td width=1%></td><td width=1%><P><FONT
	 * size=3><B>&nbsp;</B></FONT></P></td> <td><P><FONT size=3><B>Your booking is confirmed. </B></FONT></P></td></tr>
	 */
}
